package com.beijiteshop.shop.ui.notification

import com.beijiteshop.libcommon.network.RetrofitClient
import com.beijiteshop.shop.ui.notification.repo.NotificationRepo
import com.beijiteshop.shop.ui.notification.repo.NotificationService
import com.beijiteshop.shop.ui.notification.vm.NotificationVM
import org.koin.android.experimental.dsl.viewModel
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/16 14:07
 * @Description
 */

val notificationModule = module {

    single{
        get<RetrofitClient>().getService(NotificationService::class.java)
    }

    single {
        NotificationRepo(get())
    }

    viewModel {
        NotificationVM(get())
    }
}